package com.zw.design.pattern.creational.structural.adapter.v2;

public class PowerAdapter implements DC5 {
    private AC220 ac220=new AC220();



    @Override
    public int outputDC5V() {
        int abdinput=ac220.outAc220V();
        //变压器
        int output=abdinput/44;
        System.out.println("output = 输出交流电 " + abdinput+" v"+" 最后输出交流电"+output);
        return output;
    }
}
